package com.yx.frame.server;

import java.io.InputStream;
import java.io.OutputStream;

import org.json.JSONArray;

import com.yx.frame.authority.User;
import com.yx.frame.service.ServiceResult;

public interface Provider {
	public User loadUser(String userName) throws Exception;
	public void readFile(String fileNme,OutputStream outPut) throws Exception;
	public String writeFile(String fileName, InputStream file, long length) throws Exception;
	public void setCache(String key, int timeout, String obj) throws Exception;
	public String getCached(String key) throws Exception;
	public void removeCached(String key) throws Exception;	
	public JSONArray processRow(int actionId, ServiceResult serviceResult) throws Exception;
}
